<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags/form" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>java在线网盘系統-后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/static/layui/css/layui.css" media="all">
    <script src="${ctx}/static/layui/layui.js"></script>
</head>
<body style="padding:30px;height: 100%;">
<blockquote class="layui-elem-quote" style="text-align: center;">
    用户分享共享资源列表
</blockquote>
<table class="layui-table">
    <tr class="layui-bg-green">
        <th></th>
        <th>文件名</th>
        <th>文件类型</th>
        <th>大小</th>
        <th>上传时间</th>
        <th>上传用户</th>
    </tr>
    <c:forEach var="list" items="${requestScope.fileList }">
        <tr>
            <td><a href="download?file=${list.id }&folder=${list.fatherFolder.id}"><img src="/cloud/images/download.png"
                                                                                        alt="download"/></a></td>
            <td>${list.name }</td>
            <td>${list.fileType }</td>
            <td>${list.size } KB</td>
            <td>${list.uploadTime }</td>
            <td>${list.uploadUser.username }</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
